package com.grocery.service;

import com.grocery.bean.Product;
import com.grocery.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IProductService {
    int add(Product product);
    int delete(int id);
    int edit(Product product);
    Product getByID(int id);
    List<Product> getList(Page page, String text);
    List<Product> getAllListbypid(Integer pid);
    List<Product> getByState(int state);
    List<Product> getAllList();
    int getCount(String text);

}
